home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / networking / pgpuam / sources / pgpuammsgformat.h < prev    next >
Encoding:
Text File  |  2000-06-23  |  1.7 KB  |  50 lines

  1.  
  2.  
  3. //------------------------------------------------------------------------------------
  4. // PGPUAM Login Command
  5. //------------------------------------------------------------------------------------
  6. void*  FormatLoginCmd             (const void *outbuf, StringPtr serverVersion, StringPtr uamName, StringPtr userName, StringPtr challengeString );
  7.  
  8. typedef struct 
  9. {
  10.     StringPtr        userName;            // AFP User Name
  11.     StringPtr        challengeString;    // Challenge String
  12. }PUAM_LOGIN_CMD;
  13.  
  14. void*  FormatChallengeStr( const void   *outbuf, 
  15.                             UInt8          *challengeBuffer,
  16.                             UInt32          challengeBufferSize );
  17.  
  18. void*  ParseLoginCmd(const void *inbuf,  UInt32 *length, PUAM_LOGIN_CMD *vmsgP);
  19.  
  20.  
  21. //------------------------------------------------------------------------------------
  22. // PGPUAM Login Response
  23. //------------------------------------------------------------------------------------
  24. typedef struct 
  25. {
  26.     StringPtr    CounterChallengePString;    // Counter Challenge String
  27.     StringPtr    FingerPrintPString;            // Fingerprint of challenged key
  28. }PUAM_LOGIN_RESP;
  29.  
  30.  
  31. void*  FormatLoginResp( const     void       *outbuf, 
  32.                                 StringPtr    counterChallengePString, 
  33.                                  StringPtr    fingerPrintPString );
  34.                                 
  35. void*  ParseLoginResp(const void *inbuf,  UInt32 *length, PUAM_LOGIN_RESP *vmsgP);
  36.  
  37. //------------------------------------------------------------------------------------
  38. // PGPUAM Login Continue Command
  39. //------------------------------------------------------------------------------------
  40.  
  41. typedef struct 
  42. {
  43.     StringPtr    SigPString;    // Signature reply String
  44.  }PUAM_LOGIN_CONT_CMD;
  45.  
  46.  
  47. void*  FormatLoginContinueCmd( const void   *outbuf, StringPtr    counterChallengePString );
  48.  
  49. void*  ParseLoginContinueCmd(const void *inbuf,  UInt32 *length, PUAM_LOGIN_CONT_CMD *vmsgP);
  50.